extends NodeFinder


class_name CharacterSubassemblyFinder


## 组件名称
@export var component: String = ""
## 引用的角色
@export var character: ICharacterComponent = null


func __check_exports() -> Dictionary:
    return IComponent.merge({
        "character": IComponent.find_up.bind(self, func(x): return x is ICharacterComponent, character),
    }, super.__check_exports())

func __inline_find() -> Node:
    return character.get_character().subassembly(component)
